From: Luc Teirlinck Date: Wed, 14 Jul 2004 22:59:08 +0000 (+0000) Subject: (dired-directory-changed-p): `visited-file-modtime' now returns a X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~21653 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=0ed3fea823296aca88847aaa3c1dd85e85399816;p=emacs.git (dired-directory-changed-p): `visited-file-modtime' now returns a list of two integers, instead of a cons. --- diff --git a/lisp/dired.el b/lisp/dired.el index e5e23dfe2d6..43eec9408d4 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -620,8 +620,7 @@ If DIRNAME is already in a dired buffer, that buffer is used without refresh." (modtime (visited-file-modtime))) (or (eq modtime 0) (not (eq (car attributes) t)) - (and (= (car (nth 5 attributes)) (car modtime)) - (= (nth 1 (nth 5 attributes)) (cdr modtime))))))) + (equal (nth 5 attributes) modtime))))) (defun dired-buffer-stale-p (&optional noconfirm) "Return non-nil if current dired buffer needs updating.